package com.sany.assess.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author fenglf
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EVA_USER")
@ApiModel(value = "User对象", description = "")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "用户工号")
    @TableField("USER_NO")
    private String userNo;

    @ApiModelProperty(value = "用户域账号")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "姓名")
    @TableField("USER_NANE")
    private String userNane;

    @ApiModelProperty(value = "性别")
    @TableField("SEX")
    private String sex;

    @ApiModelProperty(value = "出生日期")
    @TableField("BIRTHDAY")
    private Date birthday;

    @ApiModelProperty(value = "用户密码")
    @TableField("PASSWORD")
    private String password;

    @ApiModelProperty(value = "移动电话号码")
    @TableField("MOBILE")
    private String mobile;

    @ApiModelProperty(value = "联系电话")
    @TableField("TELEPHONE")
    private String telephone;

    @ApiModelProperty(value = "邮件")
    @TableField("EMAIL")
    private String email;

    @ApiModelProperty(value = "岗位编号")
    @TableField("POSITION")
    private String position;

    @ApiModelProperty(value = "组织单位")
    @TableField("ORG")
    private String org;

    @ApiModelProperty(value = "一级部门代码")
    @TableField("ORG1")
    private String org1;

    @ApiModelProperty(value = "二级部门代码")
    @TableField("ORG2")
    private String org2;

    @ApiModelProperty(value = "三级部门代码")
    @TableField("ORG3")
    private String org3;

    @ApiModelProperty(value = "四级部门代码")
    @TableField("ORG4")
    private String org4;

    @ApiModelProperty(value = "五级部门代码")
    @TableField("ORG5")
    private String org5;

    @ApiModelProperty(value = "六级部门代码")
    @TableField("ORG6")
    private String org6;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
